package com.qidian.mes.tm.mapper;

import com.qidian.mes.pojo.Tool;
import com.qidian.mes.pojo.ToolType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 陆雯城
 * @Description
 * @Time 2024-04-08 15:38
 */
public interface ToolMapper {
    int deleteByToolIds(@Param("toolIds") Long [] toolIds);
    int deleteByToolId(Long toolId);
    int updateTool(Tool tool);
    Tool selectByToolId(Long toolId);
    int insertTool(Tool tool);
    List<Tool> selectByPage(@Param("tool") Tool tool, @Param("start") int start, @Param("limit") int limit);
    int selectCount(Tool tool);
    Tool selectByToolName(String toolName);
    Tool selectByToolCode(String toolCode);
}
